[DF-5352] fix of calculation of bytes written to file in DLC