Implement cp in ch04
Fix buf with buffer in cp in ch04

Fix a bug where the buffer pointer wasn't updated after writing a string
of non-zero characters, and a bug not adding a file hole at the end of
the file.
Fix minor typos in tee in ch04