IIO blocks: Print errors happening when writing attributes

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>