Fix truncate.

Signed-off-by: Casey Dwyer <caseydwyer@gmail.com>
Implement chmod.

Signed-off-by: Casey Dwyer <caseydwyer@gmail.com>