write_id_incr fixes, revert increment of dedupe stats which is now being done twice