Get block id by data from array