Write out the bootcode after extracting it.