EHellDame elaborated on this in another thread (I forget which, sorry): writing porn in itself is not a banable offense. However, sharing it by link here is, as it crosses the TMI scrabble line.
Sending unsolicited porn in a PM is a banable offense, as is writing illegal (e.g. kiddie) porn no matter what.