Both some of the pain and the bloating could be trapped gas in your belly or constipation. Do you have constipation, because if that happens your belly can become very bloated and sore? This only happened to me once and my belly was enormous and really hurt for two days at least before I could open my bowels. It then resolved.
If you are constipated then increase your fluid intake, prune juice and metamucil on a daily basis until you are opening your bowels normally.
Don't know whether your IBS causes you a lot of problems, but may like to consider taking Acidophilis or live yoghurt to help promote the good bacteria in the gut. I have been taking these for several months now and I very rarely have bellyaches anymore and my bowels are back to normal - soft formed stools with daily opening.
Try it and see if it helps.