writing an operating system takes time. It really helps in understanding a lot of thing. I think you can start by picking up some good book on OS (Tanenbaum's book is very good) and have a look at this website. This is a small OS being developed by single person. You will find a lot of helpful stuff here
Taj OS[
^]