Before the insert, just check to see if the path equals the path you want, and if not then prompt them to select again, and maybe have an alert box stating the fact that the block came from the wrong location.
One way you can do it, is use a while loop in conjunction with ' wcmatch '. While wcmatch returns nil, then loop to select the block.