it works now. I just had to set administrative rights for the exe, windows 7...
I can write the bootloader into sector 0 with the c program, but it doesnt wrote the kernel into sector 1.