The black discharge is most likely to be coming from the vagina because unless you have incontinence
it is not possible to have come from bladder. Get your urine tested for evidence of infection and sugar. Get your blood sugar checked. Also ultrasound
of the abdomen to look for the kidneys. Visit you gynaecologist and if everything is normal take urology consultation. Sometimes old clot looks like black discharge.