fixing code example for writing

the second line says `conf.setInputFormat(ESOutputFormat.class)` instead of `conf.setOutputFormat(ESOutputFormat.class)`