added method to actually write to disk and update the floppy image file