Able to write the file correctly !!!

Need to fix :
- Grichage in the beginning of the wav
- The file stop at 27 sec instead of 29sec