BTreeData: fixed some minor issues with truncate