handling corner cases when file size in multiple of blocksize