The phrase "What she had written" follows the correct word order for a noun clause.
It functions as the object of the preposition "by" in the sentence.
Get instant updates and alerts directly from our site.
Install this app on your device for quick access right from your home screen.