EdfWriter: bug with numberOfDataRecords was fixed