From everything I have read at Bioware forums, the intellect devourer bug (when it occurs if you do the prison sequence last) is apparently reproducible. That likely means restoring a save from before encountering him will give you the same result.

HOWEVER, i would try anyway just in case you got the bug for another reason. Trying that sure beats redoing everything.
Good Luck. [img]smile.gif[/img]