adding static block size, using a channel to send the buffer, and looping through the file