Custom simple file system simulation in C