Fixed an issue in the DataWriter when writing to files (when the amount of bits isn't forming an exact amount of bytes)