Change fs.truncate to act like truncate(2) and extend the file, also.
Merge pull request #745 from lance/master

Change fs.truncate to act like truncate(2) and extend the file, also.