Some people want to write music. Some people don't have a clue how. But fear not! There is a way! One of the fundamental part in writing music is
Music Theory! The website those two words link to, teaches the very basics of music theory. You can also find plenty of interesting links on that site too.
Here's
more on the basics. Then you can also try to find books about it, but unfortunately I can't point to any good ones since all I've been using are untranslated Icelandic books. But you should be able to find books on the matter in stores that sell musical instruments. I do hope this will be of some help.