"写神话" can be translated into English as "write myths" or "compose myths".
"Write myths" directly conveys the action of creating or documenting myths.
"Compose myths" emphasizes the creative process of crafting these mythical stories.
Both expressions are appropriate, depending on the context and the nuance you wish to convey.