Method and apparatus for allocating free space of disc for a file to be written on the disc

The present invention relates to a method and apparatus for allocating space on the disk for recording the files, according to the invention of the data to the total size of the set can be configured by combining the blank region having a size equal to or greater than a predetermined reference value, the recording in consideration of the search time varies depending on by assigning the shortest set of search time from a predetermined one of the set of the retrieved retrieve the set or larger, and the reference point on the data, the empty section that exists on the disc as well as the distance from the reference point size It allocates an empty space may simply reduce the search time than in the case of allocating only considering the distance from the reference point.