It was written is correct. We use the past tense because the writing was completed in the past. If Stephen King were writing it now, we would say Stephen King is writing it , or if Stephen King had been asked to write something in particular we could say It is being written by Stephen King .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.