writeParameters function

Write subset of parameters (theta, omega or sigma).