Writer sentenced to 10-month prison term