fixed merge conflicts, and added check to ensure available FAT entries before copying file onto disk