The TSA is required to insert a Notice of Inspection card whenever your luggage is hand searched, but writing personal notes, while not unprecedented, is probably frowned upon by supervisors.
FORBES: TSA Agent Gropes Most Intimate Parts of Woman's Luggage