set file size to 0 on O_TRUNC