only sync on n writes; only on timer if dirty