Write until you think you've got something worth reading. Then read it. You'll probably find that it's not as good as you thought. The only answer is to go back and write some more. Eventually, ask an honest friend or two to have a look. Accept that criticism. Go back and write some more.