I was writing a story.
I have written poems.
I have been writing a novel.
I had written a song.
I had been written up for fighting.
The last one is sort of weird, since you can't say "I had been written" in the sense of the verb "write" as it would be grammatically incorrect.