Implement truncate

Fixes bradfitz/docker#8
Also, I have wrote `flags` support for open. Don't know what to do with perms - despite syscall receives that argument, `FileSystem` interface `Open` method seems lacks it.