If you just want your car get passed through the Inspection then use some engine treatment fluid (e.g. STP Treatment) which can be found at any auto spares store. Your car would stop emitting that smoke for atleast a few days and you would be able to do the inspection in the meanwhile.

If you want to fix this problem permanently, just go to any Scrap/Junkyard in the Industrial Area...buy a used engine with same specs and replace it with the current one at any workshop there. It will cost you much less than the Nissan Company.