Likely you may be suffering form irritable bowel.
Only thing is black colored stools suggest altered blood in stools.
Get your hemoglobin
and stool routine done if it is abnormal you may need further evaluation by a gastroenterologist.
Hope this answers your query.
Please do reply in case of any further questions.
Wish you a speedy recovery.