You are calling
mov ah,3ch
int 21h
Ie, create a file. If you use this call on an existing file that file will be truncated. You should use
mov ah,3dh
int 21h
with the appropriate flags in AL to open the file.