pulling out freespace calculation and beginning implementation of reorganizeFile