Fixed file writing

Program now writes a single piece to peer1002.  There are a couple of
things that still need to be done after a piece is received (see TODO
comments in Peer.java): updating the bitfield, and sending a new
request.