Fixed issue with encryption enabled when writing a block that was exactly the AES block size