Read a lot in the genre in which you want to write and then write a lot. In fact, you should write everyday. Oh, and watch out for relatives who love you but have never read anything you've written. Or even if they have. They will lie to you.