You can compose a piece of writing, I wouldn't say it is used incorrectly. It's most commonly used to describe someone who writes music, but like I said, it's not an incorrect usage in the given sentence. You could use 'author' though.
I agree with your interpretation of the second sentence. It needs the past perfect.