fix bug avro

avro write item less than schema will cause error