Fixed 'AllocateMemory' function
Fixed more bugs in 'CreateFileEntry'