truncating a file to a negative size should throw

Fixes #27