Govt writes to Thailand to repatriate Pakistani inmates