this may be either protozoal infestation with amoeba organism and need treaatment ,or something wrong with your piles (haemorrhoids) , in both cases you must visit a doctor
good luk
ALWAYS!!!!!!!!!!!!!!! when there is blood in your stool. Go to the doc and bring in stool sample ASAP