Erm...
Writing an OS is an extremely time consuming, difficult and long job. Microsoft takes years to write an OS with teams and teams of the world's best programmers. If you're new to programming there's no way you'll be able to do it. Fact.
And C is rubbish. Learn C++.