Implemented allocate file and have all the file structures and json backups constructed