Я пишу музыку is perfect.
Писать means not only 'to write', but 'to compose' too.