first iteration of splitFile

splits file according to size of chunks