Fixed write/read; started truncate; bug in release_free