Bloating usually means one of a couple of things. The most common is gas from bacterial action in your gut. This can be controlled by diet to some degree. If you want to try that, have a look at the SCD introductory diet plan: pecanbread
It could also mean that you are suffering from a stricture or partial blockage. This is usually accompanied by nausea and vomiting if it is severe. A stricture needs medical (drugs) and possibly surgical intervention, so let's hope for the less dangerous case - bacterial growth.