Hi cybek,
To install the bootloader, you had the format command with /s parameter. ( This puts both IO.SYS and MSDOS.SYS into the drive). If they provided the source code of the format utility, you may take a look at it to see how to proceed.
--Thomas