An MLA says he will be writing to the Public Prosecution Service over the “pitiful sentence” handed down to a child sex offender.