Splitting input files for distribution
number of new files are equal to number of free nodes