Simple FAT filesystem implementation in C