Function writeData3DValue