Write data to Kafka with Avro