Writers who use allegory, myth, and other literary devices do not, obviously, announce that they are doing so.
Again, you are picking the scriptures and deciding which you will take to be true and which you will take to be allegorical.
The bible talks of "the lamb", "the shepherd", the "bread of life" and the list goes on.
We can easily see the symbolism. Yet Genesis is the very first writings from God to His creation and you belief it to be a riddle? A metaphor? An allegory?
Right off the hop, God is confusing His creation. The creation whom He wants to have understand Him more than anything?
You believe the virgin birth, the dove at the baptism, including a voice from God shouting "This is my son, in whom I am well pleased", you believe in the last supper, the crucifixion, the rising from the dead, the miracles, right from turning water into wine to walking on water to healing lepers, deaf, and blind...
You believe words from a book that will save your soul. You place the fate of your eternal soul in the words from a book. Yet, words from this same book, that contradict the beliefs, observations, assumptions and teaching of mere men (most of which are atheists) must be allegorical.
They cannot be as true as other words from this same book, that also contradict and betray scientific plausibility, the observations of men and the teaching of mere men....
Well, you do not get to cherry pick the scripture.
You do not get to say which is truth and which is allegory. Just because one story saves your soul and the other........ well your soul is not dependent on them.
I truly believe that this is what Christ meant when He talked about "lukewarm" Christians.