Update file_system.c

writeInode now copies pointers in case the caller were to malloc and freed the given ones.