Implemented write binary for AvroRecords, which defers to the Java implementation from Apache.