implement file entry allocation