As you pass blackish stool it means that there is leaking some blood from your intestine or stomach .
as you pass your motion semi liquid and not able to control you might have some infection in G I Tract.
Go for stool test
,it may reveal warm infestation like thread warm,pin warm,round warm etc
As you are non veg there is possibility of having tap warm.
It will also reveal any dysentry
Most important is black color stool i.e.malina, passing blood is present,if present find out the source.
After the report we may conclude and treatment can be done.
Take more water,curd,butter milk etc
ok and bye.