Under the title of Homelessness in Ireland can I
write about world homelessness as well
Not really. If the essay isn't relevant to the question they can give you 0 marks. If part of it isn't relevant you'll get no marks for that bit, so no point in writing it.