I think the scholarly consensus is that the Noah's ark story was written before the exile.
I don't know about that, but it wouldn't matter. Abraham came from ancient Sumeria, so presumably he -- and thus the ancient Hebrews -- already knew the Sumerian legends.