writing about suicide is cathartic,so in a sense if he twas suicidal/had suicidal ideation one of the ways to combat it is to write your thoughts out so you can actually see it physically and make you think/re-think your decision..
Pac had so much drama&trauma in his life that if he wanted to actually commit suicide then he would have tried at some point,which we have no evidence of,especially when he twas in the pen,that would have been the most likely time,cause if i'm no mistaken on top of the physical danger from prison,you also have the mental side when you're lying in bed just prolly rehashing all of his mistakes&old shyt he went through,also wasn't he in debt to Interscope albuls at the time as well..? Definitely more fodder for suicde potentially but he didn't go through with it..
then when he signed to Suge after he got out you didn't hear much about that side of him,so maybe it twas always just mostly a money issue..
if he had lived to his late twenties/thirties you might have heard more about his depression/suicdal ideation/maybe bi-polar side because that's usually when most males really start to develop this disease/those type of destructive thoughts..