'Write' is almost the wrong verb for what I do. I think 'compose' is more accurate because you're trying to make the sounds in your mind and in your voice. So I compose while I'm driving or in the shower.
If what you want to do is make good art, decide whats good and try to imitate it.