A fairytale is not an allegory. There may be allegory in it, but it is not an allegory.