replaced isAppend with truncate

Change-Id: I086d2974945b73214e28b9bcd3d5da429e0892a5