fixed the duplicated write problem
before supporting xfs